.

BJ4 Sections (Significant changes in bold)BJ3NotesBJ4 Review ExercisesBJ3BJ4 Programming ExercisesBJ3

.

.

General ChangesInstance variables on top

.

"Instance variable", not "instance field"

.

Carefully use JLS "inheritance" terminology (i.e. instance variables are never "inherited")

.

Syntax diagrams have examples

.

.

Chapter 1111111

.

22222

.

333832

.

44494

.

5651053

.

6661164

.

777127

.

8New discussion of pseudocode885

.

997

.

10108

.

1111

.

12

.

13

.

.

Chapter 211Separate sections for types and variables1111

.

212222

.

323333

.

43444

.

545554

.

66676

.

777875

.

89Switched order of sections88

.

98996

.

101010107

.

111111118

.

1212129129

.

131313101310

.

14111411

.

15141512

.

16151613

.

17161714

.

18171815

.

1918

.

2019

.

.

Chapter 314New TallyCounter example1 11

.

22 22

.

323 33

.

4344

.

5555

.

66664

.

77775

.

888186

.

99997

.

104108

.

117119

.

1281210

.

1391311

.

141412

.

151513

.

161614

.

171715

.

18131816

.

19141917

.

20152018

.

2119

.

2220

.

.

Chapter 4111111

.

222222

.

33, 4Assignment now in 3.1, increment/decrement in 4.33333

.

454444

.

565555

.

676666

.

7777

.

8888

.

10999

.

11101010

.

12111111

.

131212NEW

.

14131312

.

15141413

.

16151514

.

17part 161615

.

18part 161716

.

1817

.

1918

.

.

Chapter 5No changes1NEW11

.

21 b,c,h22

.

31 i33

.

41 d,e,f,g45

.

5256

.

6367

.

7478

.

858

.

969

.

10NEW10

.

11NEW11

.

12NEW129

.

13NEW1310

.

1481411

.

1591512

.

16101613

.

17111714

.

18121815

.

19131916

.

20142017

.

2115

.

2216

.

2317

.

2418

.

2519

.

26NEW

.

.

Chapter 611No changes1

.

222

.

3New section on common loop algorithms31

.

4342

.

5553

.

66Sample debugging session is now on web64

.

75

.

86

.

97

.

108

.

119

.

1210

.

1311

.

1412

.

1513

.

1614

.

1715

.

1816

.

1917

.

2018

.

2119

.

.

Chapter 71117.117.2

.

2227.227.3

.

3337.337.4

.

4447.447.5

.

5Partially filled arrays broken into separate section57.557.6

.

6New section on common array algorithms67.667.7

.

7777.777.8

.

8687.887.9

.

97.99

.

107.110

.

117.1111

.

127.1212New

.

13New137.1

.

14New147.11

.

15New157.12

.

16New167.13

.

177.15177.14

.

187.17 and new187.15

.

197.19197.16

.

207.2207.2

.

217.18

.

227.19

.

11

.

Chapter 8No changes2211

.

3322

.

4433

.

5544

.

6655

.

7766

.

887new

.

998new

.

101097

.

1111108

.

1212119

.

13131210

.

14141311

.

15151412

.

16161513

.

17171614

.

18181715

.

19191816

.

20201917

.

21212018

.

2222

.

2323

.

2424

.

2525

.

2626

.

2727

.

2828

.

2931

.

3032

.

3133

.

.

Chapter 911Changed focus to algorithm reuseNo changes11

.

2222

.

3333

.

4444

.

5555

.

6New section on mock objects66

.

7677

.

878new

.

989new

.

10910new

.

111011new

.

128

.

139

.

1410

.

1511

.

1612

.

17new

.

18new

.

1913

.

2014

.

2115

.

2216

.

2317

.

2418

.

2519

.

2620

.

2726

.

2821

.

2922

.

3023

.

3124

.

3225

.

3310.16

.

3410.17

.

3510.18

.

.

Chapter 1011, 2No changes11

.

2322

.

33Separate section on overriding3new

.

444new

.

555new

.

666new

.

787new

.

89Text components moved to ch. 188new

.

9new

.

103

.

114

.

125

.

137

.

148

.

1515

.

1620

.

.

Chapter 11111111

.

2New section on strategies for text processing2222

.

323333

.

434444

.

545555

.

656666

.

767777

.

87888

.

999

.

101010

.

1111118

.

1212129

.

13131310

.

14141411

.

15151512

.

16161613

.

17171714

.

18new1815

.

1919

.

2020

.

.

Chapter 12No changeNo changeNo change

.

.

Chapter 1311No changeNo change

.

23

.

34

.

42Moved permutations section

.

55

.

.

Chapter 14No changeNo changeNo change

.

.

Chapter 15No change1111

.

2222

.

3333

.

4444

.

5555

.

6666

.

7777

.

8888

.

9999

.

101010new

.

111111new

.

121212new

.

1313new

.

141410

.

1511

.

1612

.

1713

.

1814

.

1915

.

20new

.

21new

.

22new

.

23new

.

2416

.

.

Chapter 1611, 7No change116.1

.

22, 7216.2

.

33316.12

.

444new

.

555new

.

666new

.

78716.4

.

89816.5

.

910916.3

.

1016.6

.

1116.7

.

12new

.

13new

.

14new

.

1516.9

.

1616.1

.

1716.11

.

1816.13

.

1916.14

.

2016.15

.

2116.16

.

2216.17

.

2316.18

.

2416.19

.

2516.2

.

2616.21

.

.

Chapter 17No change1111

.

2222

.

3333

.

4444

.

5555

.

6666

.

7777

.

8888

.

999new

.

1010109

.

11111110

.

12121211

.

13131312

.

14new1413

.

.

Chapter 181Moved from inheritance chapter110.18110.9

.

2Moved from inheritance chapter210.19210.1

.

31318.1310.11

.

42418.2410.12

.

53518.3510.13

.

64618.4610.14

.

718.5710.19

.

818.6818.1

.

918.7918.2

.

1018.81018.3

.

1118.91118.4

.

1218.11218.5

.

1318.111318.6

.

1418.121418.7

.

1518.131518.8

.

1618.141618.9

.

1718.151718.1

.

1818.161818.11

.

1918.17

.

2018.18

.

.

Chapter 1911No changeNo change

.

22Changed focus to binary I/O

.

33

.

44

.

.

Chapter 20No changeNo changeNo change

.

.

Chapter 21No changeNo changeNo change

.

.

Chapter 22No changeNo changeNo change

.

.

Chapter 23No changeNo changeNo change

.

.

Chapter 2411No changeNo change

.

22

.

33, 4Simplified because of JSF 2

.

45

.

56

.

67